Input Dialog
AutomatR.DefaultActivities.Applications.InputDialog
The "InputDialog" activity in AutomatR is designed to present a dialog box to users, soliciting input based on provided configurations. This activity facilitates interaction with users, allowing them to input information through either a text box or a set of predefined options.
Properties
Name | Description |
---|---|
Input | |
Delay | Specifies the wait time in seconds before executing the activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: 5 seconds as "5". |
Title | Specifies the desired display title for the dialog box. String variables containing the title. |
Label | Specifies the label for the input field in the dialog box. String variables containing the label. |
Input Type | Selects the input type. Choose "Textbox" for a text input or "Multiple Choice" for predefined options. InputTypes enum . |
Options | Specifies multiple-choice options as an array of strings. Example: ["Option1", "Option2"]. String array variables. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. Enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Result | Outputs the user's input as a string variable, enabling the utilization of input for subsequent activities in the workflow. String variables storing the input value. |
Output | |
Result | Captures the user's input or selection from the input dialog. The type of the result variable depends on the chosen "Input Type" and can be a string or the selected option. Supports a string variable or an object variable based on the input type. |
How to use:
- Drag and drop the "InputDialog" activity onto the workflow.
- Configure the properties by setting the title, label, input type, and options.
- Optionally, set the delay and customize the display name.
- Execute the workflow to present the input dialog box to users.
- The user's input will be stored in the specified result variable for further use in the workflow.
Example:
Consider an example where the "InputDialog" activity is used to prompt the user for their name:
InputDialog:
Display Name: "Get User Name"
Title: "User Input"
Label: "Enter your name:"
Input Type: Textbox
Result: UserName
In this example, the activity displays a dialog box with the title "User Input" and the label "Enter your name." The user inputs their name into the text box, and the result is stored in the variable "UserName" for further use in the workflow.